//
//  AnimatedFlashcards_AppDelegate.h
//  AnimatedFlashcards
//
//  Created by Timothy Costa on 10/4/09.
//  Copyright __MyCompanyName__ 2009 . All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "DeckViewController.h"
#import "TestController.h"

@interface AnimatedFlashcards_AppDelegate : NSObject 
{
    NSWindow *window;
	
    NSPersistentStoreCoordinator *persistentStoreCoordinator;
    NSManagedObjectModel *managedObjectModel;
    NSManagedObjectContext *managedObjectContext;
	
	// All the views
	IBOutlet NSView * decksView;
	IBOutlet NSView * testView;
	IBOutlet NSView * resultsView;
	
	NSView * currentView;
	
	TestController * testController;
	DeckViewController * deckViewController;
}

@property (nonatomic, retain) IBOutlet NSWindow *window;

@property (nonatomic, retain, readonly) NSPersistentStoreCoordinator *persistentStoreCoordinator;
@property (nonatomic, retain, readonly) NSManagedObjectModel *managedObjectModel;
@property (nonatomic, retain, readonly) NSManagedObjectContext *managedObjectContext;

@property (retain) IBOutlet TestController * testController;
@property (retain) IBOutlet DeckViewController * deckViewController;
@property (retain) IBOutlet EditCardController * editCardController;

- (IBAction)saveAction:sender;

// Animated Window methods
-(IBAction) showDecksView:(id)sender;
-(IBAction) showTestView:(id)sender;
-(void) changeToView:(NSView *)newView;
-(NSRect)newFrameForNewContentView:(NSView *)view;

@end
